package example.lec07;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


/*
 * 
 DROP TABLE IF EXISTS `news_info`;
 CREATE TABLE `news_info` (
  `id` int(11) NOT NULL DEFAULT '0',
  `title` text,
  `content` text CHARACTER SET utf8,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
 *
 */
 
public class TestMain {

    public static void  test1()
    {
        ApplicationContext ctx=new ClassPathXmlApplicationContext("bean_lec07.xml");
        NewsDao hello = ctx.getBean("newsDao", NewsDao.class);
        hello.insert("aabb", "Boot");
       
    }

    public static void main(String[] args)
    {
        test1();
    }
    
}
